﻿using System.Configuration;

namespace ElectronicCommerce.Framework.Caching.Configuration
{
    /// <summary>
    /// Provider Configuration Section
    /// </summary>
    public class ProviderConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("providers")]
        public ProviderCollection Providers
        {
            get
            {
                return (ProviderCollection)base["providers"];
            }
        }

        [StringValidator(MinLength = 1)]
        [ConfigurationProperty("defaultProvider", DefaultValue = "AspNetCacheProvider")]
        public string DefaultProvider
        {
            get
            {
                return (string)base["defaultProvider"];
            }
        }
    }
}
